package belf.migrate.core.number;

import java.text.DecimalFormat;

public class NumberFormatUtil {

    private static final DecimalFormat decimalFormat = new DecimalFormat();

    public static String numberToString(Number data, String pattern) {
        decimalFormat.applyPattern(pattern);
        return decimalFormat.format(data);
    }

}
